package com.zhaoziqian.config;

/**
 * Created with fabric-cli
 * 作者： zhaoziqian
 * 时间： 2018/6/2  下午2:19
 * 功能：
 */
public enum  StatusEnum {

    SUCCESS("SUCCESS"),
    ERROR("ERROR"),
    CREATE_CHANNEL_ERROR("create channel error"),
    JOIN_CHANNEL_ERROR("join channel error"),
    INSTALL_CHAINCODE_ERROR("install chaincode error"),
    INSTANTIATE_CHAINCODE_ERROR("instantiate chaincode error"),
    INVOKE_CHAINCODE_ERROR("invoke chaincode error"),
    QUERY_CHAINCODE_ERROR("query chaincode error");

    private String status;

    StatusEnum(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    @Override
    public String toString() {
        return status;
    }
}
